package com.ozero1st;




import android.app.Activity;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class type1 extends Activity{

    TextView tv;
    Button btnTest;

    @Override	
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main2);
        
        tv=(TextView)findViewById(R.id.text1);
        tv.setText("Pretest : Computer Basic\n" + "Grading method : Highest grade\n" + "This quiz close on : " +
        android.text.format.DateFormat.format("hh:mm:ss dd-MM-yyyy", new java.util.Date()));
        
        
        btnTest = (Button)findViewById(R.id.btnTest);
        btnTest.setOnClickListener(new OnClickListener(){

			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent test = new Intent(v.getContext(),type1_quiz.class);
				startActivity(test);		
			}
        	
        });
      
    }


}

